package org.oos.atom.impl;

import java.util.List;

import org.oos.atom.ReviewFeed;
import org.oos.atom.elements.Author;
import org.oos.atom.elements.AuthorElement;
import org.oos.atom.entries.impl.ReviewEntryImpl;

import com.google.api.client.util.Key;

/**
 * 
 * @author pablo.gonzalez@11870.com
 * 
 */
public class ReviewFeedImpl extends AbstractFeedImpl<ReviewEntryImpl> implements
		ReviewFeed<ReviewEntryImpl>, Cloneable {

	private static final long serialVersionUID = -3986937191171376489L;
	@Key("entry")
	private List<ReviewEntryImpl> entries;

	@Key
	private AuthorElement author;

	@Override
	public List<ReviewEntryImpl> getEntries() {
		return (List<ReviewEntryImpl>) entries;
	}

	public void setEntries(List<ReviewEntryImpl> entries) {
		this.entries = entries;
	}

	@Override
	public ReviewFeedImpl clone() throws CloneNotSupportedException {
		return (ReviewFeedImpl) super.clone();
	}

	@Override
	public Author getAuthor() {
		return author;
	}

}
